import http from '../..//utlis/request'

export default {
  namespaced: true,
  state: {
    info: {}
  },
  mutations: {
    SAVA (state, data) {
      state.info = data
    }
  },
  actions: {
    getInfo (ctx) {
      http.get('admin/info').then(res => {
        console.log(res)
        ctx.commit('SAVA', res.result[0])
      })
    }
  }
}
